package cn.itsource.ymcc.service.impl;

import cn.itsource.ymcc.domain.Employee;
import cn.itsource.ymcc.mapper.EmployeeMapper;
import cn.itsource.ymcc.service.IEmployeeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.stream.Collectors;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author cff
 * @since 2024-06-04
 */
@Service
public class EmployeeServiceImpl extends ServiceImpl<EmployeeMapper, Employee> implements IEmployeeService {

    @Override
    public void patch(Long[] ids) {
        List<Long> idIist = Arrays.asList(ids);
        Collection<Long> collect = idIist.stream().collect(Collectors.toList());
        super.removeByIds(collect);
    }
}
